# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=muacme
pkgver=0.3.0
pkgrel=0
pkgdesc="A convenient wrapper for the ACMEv2 client uacme"
url="https://github.com/jirutka/muacme"
arch="noarch"
license="MIT"
depends="uacme openssl"
install="$pkgname.pre-upgrade $pkgname.post-upgrade"
options="!check"  # no tests provided
source="https://github.com/jirutka/muacme/archive/v$pkgver/$pkgname-$pkgver.tar.gz
	muacme-renew-all.crond
	"
builddir="$srcdir/$pkgname-$pkgver"

package() {
	make install DESTDIR="$pkgdir" prefix=/usr

	install -m 755 -D "$srcdir"/muacme-renew-all.crond \
		"$pkgdir"/etc/periodic/weekly/muacme-renew-all

	install -d -m 755 "$pkgdir"/etc/ssl/uacme
}

sha512sums="82b9e3838bcbd222f6d83d3746dffdc8a3814fae7b2c2b037a9f3bfb94ced07e56d546d5d3ae57e0bbbfd7a46098d0814f1a203c53c19cd691dadeda96b922ec  muacme-0.3.0.tar.gz
37082df7ebd8b6ef3f683509b6d3852c6f56bb6903a90bb12b7fa116003e539617e2863abb600ad3484bcc8f2bc537e9d1a172573e6cf73e87983050b5d623bc  muacme-renew-all.crond"
